package org.openbpm.bus.model.xml;

import lombok.Data;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "busColumn")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class BusColumnXml {

    @XmlElement(name = "ctrJson")
    private String ctrJson;

    @XmlAttribute
    private String key;

    @XmlAttribute
    protected String name;
    /**
     * 类型 枚举 : ColumnType
     */
    @XmlAttribute
    protected String type;
    /**
     * 长度
     */
    @XmlAttribute
    protected int length;
    /**
     * 小数点
     */
    @XmlAttribute
    protected int decimal;
    /**
     * 是否必填
     */
    @XmlAttribute
    protected boolean required;
    /**
     * 是否主键
     */
    @XmlAttribute
    protected boolean primary;
    /**
     * 默认值
     */
    @XmlAttribute
    protected String defaultValue;
    /**
     * 注释
     */
    @XmlAttribute
    protected String comment;


}
